package com.example.iterator.Impi;

import com.example.iterator.Collection;
import com.example.iterator.Iterator;

public class CollectionArrayImpi implements Collection {
    private Object[] array;

    public CollectionArrayImpi(Object[] array) {
        this.array = array;
    }

    @Override
    public Iterator getIterator() {
        return new IteratorImpi(array);
    }
}
